import { createApp } from "vue";
import App from "./App.vue";
import EarthSDKUI from "earthsdk-ui";
import "./scripts/iconfont.js";
import "earthsdk-ui/lib/style.css";
import { copyright } from "./copyright";

import ElementPlus from "element-plus";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "element-plus/dist/index.css";

import router from "./router/index";

//@ts-ignore
window.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = true;
const app = createApp(App);

app.use(ElementPlus);
app.use(EarthSDKUI);
app.use(router);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

//@ts-ignore
//window.g_xe2_copyright_print = window.g_xe2_copyright_print ?? true;
//@ts-ignore
//window.g_xe2_copyright_print && copyright.print();

app.mount("#app");
